It's important to update the allocation of the parent before allocating
its children, it's an assumption we make in a lot of places.
This broke resource scale calculation for boxpointers and their
children when multiple monitors with different scales are used and the
primary monitor is not positioned at x=0, y=0.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1615
}
vfunc_allocate(box, flags) {
+ if (this._sourceActor && this._sourceActor.mapped) {
+ this._reposition(box);
+ this._updateFlip(box);
+ }
+
this.set_allocation(box, flags);
let themeNode = this.get_theme_node();
break;
}
this.bin.allocate(childBox, flags);
-
- if (this._sourceActor && this._sourceActor.mapped) {
- this._reposition(box);
- this._updateFlip(box);
- this.set_allocation(box, flags);
- }
}
_drawBorder(area) {